package com.iplant.basic.service.basicenum.mss;


import com.iplant.base.po.enums.BaseEnum;

public enum MSSBatchPropControlType implements BaseEnum {
	/**
	 * 默认
	 */
	Default(0, "默认"),

	/**
	 * 可选
	 */
	NotRequired(1, "可选"),
	/**
	 * 禁用
	 */
	Disable(2, "禁用"),
	/**
	 * 必输
	 */
	Required(3, "必输") ;

	private int value;
	private String label;
	private String remark="";

	MSSBatchPropControlType(int value, String label) {
		this.value = value;
		this.label = label;
	}

	/**
	 *
	 * @param val
	 * @return
	 */
	public static MSSBatchPropControlType getEnumType(int val) {
		for (MSSBatchPropControlType type : MSSBatchPropControlType.values()) {
			if (type.getValue() == val) {
				return type;
			}
		}
		return null;
	}
	@Override
	public int getValue() {
		return value;
	}

	@Override
	public void setValue(int value) {
		this.value = value;
	}
	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public void setLabel(String label) {
		this.label = label;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
